﻿#ifndef CMDLINECHARTCOMPUTEHIRF_H
#define CMDLINECHARTCOMPUTEHIRF_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartComputeHIRF : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartComputeHIRF();
            ~CmdLineChartComputeHIRF();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(const QString& graphNames, double incidentWaveFieldValue, const QString& HIRFName, const QString& typeName, bool isCheckBoxChecked) { 
                m_graphNames = graphNames; 
                m_incidentWaveFieldValue = incidentWaveFieldValue; 
                m_HIRFName = HIRFName; 
                m_typeName = typeName;
                m_isCheckBoxChecked = isCheckBoxChecked;
             }

        private:
            QString m_graphNames; 
            double m_incidentWaveFieldValue; 
            QString m_HIRFName; 
            QString m_typeName;
            bool m_isCheckBoxChecked;
    };

} // namespace PostCommand

#endif
